          
          
         
            //var originalWidth = consultWidth = window.innerWidth;
            //var linkJumpCount = 16;
            var linkHref;
            var beginningDelay = null;
            var watchBrowse = null;

            //first ele add class
            function fstAddClass(){
                for(var c = 0;c < $('.addFst').length;c++){
                    $('.addFst:eq(' + c + ')>*:first-child').addClass('active');
                }
            }
            
            function countDown(){
                    linkJumpCount -= 1;
                
                    //linkJumpCount=0时，跳转页面
                    if(linkJumpCount <= 0){
                        location.href = linkHref;
                    }

                    //每秒执行一次,showTime()
                    setTimeout("countDown()",100);
            }
           
            //前进后退页面处于顶部
            function beginningAtTop(){
                setTimeout(function(){
                    document.documentElement.scrollTop = document.body.scrollTop = 0;
                },10)
            }

            //判断是否为移动设备
            function browserRedirect(){
                var sUserAgent = navigator.userAgent.toLowerCase();
                var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
                var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
                var bIsMidp = sUserAgent.match(/midp/i) == "midp";
                var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
                var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
                var bIsAndroid = sUserAgent.match(/android/i) == "android";
                var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
                var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
                if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
                    $('body').addClass('mobileDevice');
                    return true;
                }else{
                    return false;
                }
            }

            var point = GetQueryString('pointId');
            var watchPoint = null;
            var subPrevent = false;

            function showSubTip(t){
                if(t){
                    $('main .subTip').text(t);
                }
                subPrevent = true;
                $('main .subTip').addClass('active');
                subTip = setTimeout(function(){
                        subPrevent = false;
                },2500);
                setTimeout(function(){
                        $('main .subTip').removeClass('active');
                },2510)
            }
            
            $(document).ready(function(){
                    browserRedirect(); 
                    fstAddClass();

                    if(point){
                        watchPoint = setInterval(function(){
                            if(!$('main nav a').length) return false;
                            document.documentElement.scrollTop = document.body.scrollTop = $(('#' + point))[0].getBoundingClientRect().top - 40;
                            for(var c = 0;c < $('main nav a').length;c++){
                                console.log($('main nav a').eq(c).attr('data-pointname'));
                                if($('main nav a').eq(c).attr('data-pointname').indexOf(point) >= 0){
                                    $('main nav a').removeClass('active');
                                    $('main nav a').eq(c).addClass('active');
                                    break;
                                }
                            }
                            clearInterval(watchPoint);
                        },10)
                    }
                    //setTimeout(checkContnHeight,10);
                    /*$('a').click(function(e){
                        
                            linkHref = $(this).attr('href');
                            e = e || window.event;
                            e.cancelBubble = true;
                            e.stopPropagation();
                            if(e.preventDefault){ // w3c
                                e.preventDefault();
                            } else { // ie
                                e.returnValue = false;
                            }
                            countDown();
                            $('.leaving').addClass('jump');
                            $('.container').addClass('jump');
                    })*/

                    
                    
            })

           

        